package com.yx.shop.service;

import com.yx.shop.entitly.Orders;

import java.util.List;

/**
 * @Classname OrderService
 * @Description TODO:
 * @Date 2021/05/09 14:00
 * @Created by yx
 */
public interface OrderService {
    /**
     * @Author:yx
     * @return boolean
     * @Date 2021/05/09 14:28
     * @param orders
     * @Description:创建订单
     **/
    boolean createOrder(Orders orders);

    /**
     * @Author:yx
     * @return java.util.List<com.yx.shop.entitly.Orders>
     * @Date 2021/05/09 14:28
     * @param uid
     * @Description:根据uid获取订单
     **/
    List<Orders> getOrderListByUid(int uid);

    /**
     * @Author:yx
     * @return com.yx.shop.entitly.Orders
     * @Date 2021/05/09 16:20
     * @param oid
     * @Description:根据oid查询订单详情
     **/
    Orders getOrderByOid(String oid);

    /**
     * @Author:yx
     * @return boolean
     * @Date 2021/05/09 17:48
     * @param oid
     * @Description:根据oid修改订单状态,state未状态码
     **/
    boolean updateStateByOid(String oid,Integer state);
}
